home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XA_6S.ZIP / SOURCE / KERNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-09  |  1.2 KB  |  61 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. /*
  9.     Kernal Message Handler
  10. */
  11.  
  12. #ifndef _KERNAL_H_
  13. #define _KERNAL_H_
  14. #include <OSTRUCT.H>
  15. #include "K_DEFS.H"
  16. #include "XA_DEFS.H"
  17.  
  18. void kernal(void);
  19. void setup_k_function_table(void);
  20.  
  21. typedef unsigned long (*AESroutine)(short clnt_pid,AESPB*);        /* All AES command handers are of this type */
  22.  
  23. typedef struct {        /* Kernal command packet structure */
  24.     short pid;            /* client pid */
  25.     unsigned short cmd;    /* command code */
  26.     AESPB *pb;            /* pointer to AES parameter block */
  27. } K_CMD_PACKET;
  28.  
  29. typedef struct {
  30.     short mx;
  31.     short my;
  32.     short state;
  33.     short clicks;
  34. } MOUSE_DATA;
  35.  
  36. /* Mouse device commands */
  37.  
  38. #define    MOOSE_INIT_PREFIX        0x4d49        /* 'MI' */
  39. #define    MOOSE_DCLICK_PREFIX        0x4d44        /* 'MD' */
  40. #define MOOSE_BUTTON_PREFIX        0x5842        /* 'XB' */
  41.  
  42. typedef struct moose_init_com {
  43.     unsigned short    init_prefix;
  44.     void *ikbd_table;
  45. } MOOSE_INIT_COM;
  46.  
  47. typedef struct moose_dclick_com {
  48.     unsigned short dclick_prefix;
  49.     unsigned short dclick_time;
  50. } MOOSE_DCLICK_COM;
  51.  
  52. typedef struct moose_button_data {
  53.     unsigned short x;
  54.     unsigned short y;
  55.     unsigned short state;
  56.     unsigned short clicks;
  57. } MOOSE_BUTTON_DATA;
  58.  
  59.  
  60. #endif
  61.